/**
 * 
 */
package com.bot.pojo;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author zhaoyan
 *
 * 2020年2月3日
 */
public class Score implements Serializable{
	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2690471649574945950L;
	@NotNull(message = "编号不能为空")
	private Integer aid;
	@NotNull(message = "编号不能为空")
	private Integer jid;
	@NotNull(message = "分数不能为空")
	private Integer perScore;
	
	public Integer getAid() {
		return aid;
	}

	public void setAid(Integer aid) {
		this.aid = aid;
	}

	public Integer getJid() {
		return jid;
	}

	public void setJid(Integer jid) {
		this.jid = jid;
	}

	public Integer getPerScore() {
		return perScore;
	}

	public void setPerScore(Integer perScore) {
		this.perScore = perScore;
	}

	/**
	 * @param aid
	 * @param jid
	 * @param perScore
	 */
	public Score( Integer aid,  Integer jid, Integer perScore) {
		super();
		this.aid = aid;
		this.jid = jid;
		this.perScore = perScore;
	}

	@Override
	public String toString() {
		return "Score [aid=" + aid + ", jid=" + jid + ", perScore=" + perScore + "]";
	}

	/**
	 * 
	 */
	public Score() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((aid == null) ? 0 : aid.hashCode());
		result = prime * result + ((jid == null) ? 0 : jid.hashCode());
		result = prime * result + ((perScore == null) ? 0 : perScore.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Score other = (Score) obj;
		if (aid == null) {
			if (other.aid != null)
				return false;
		} else if (!aid.equals(other.aid))
			return false;
		if (jid == null) {
			if (other.jid != null)
				return false;
		} else if (!jid.equals(other.jid))
			return false;
		if (perScore == null) {
			if (other.perScore != null)
				return false;
		} else if (!perScore.equals(other.perScore))
			return false;
		return true;
	}
	
	
	
	
	

}
